<%@ page language="java" import="org.nus.*,java.util.*"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<jsp:include page="validate.jsp"></jsp:include>
	<jsp:include page="validate.jsp"></jsp:include>
	<head>
		<title>GPS Application:Add User</title>
		<link rel="stylesheet" type="text/css" href="CSS/divs.css">
	</head>
	<body>
		<div id="row1">
			<center>
				<img src="images/gpsbanner.jpg" alt="" name="Banner" width="950"
					height="100" id="Banner" />
			</center>
		</div>
		<div align="center">
			<h2>
				Existing Users
			</h2>
		</div>
		<!-- List user here-->
		<div id="listusers">
			<%
						DBDisplayer displayer = (DBDisplayer) session
						.getAttribute("dbconn");
				String html = displayer.listUsersWithDelBtn();
				out.write(html);
			%>
		</div>
		<br>
		
		<div align="center">
			<h2>
				Add User
			</h2>
		</div>
		<!-- Form to add user -->
		<form method="POST" action="adduser.do">
			<br>
			<table width="600" border="1" height="207" align="center">
				<tbody>
					<tr>
						<td>
							&nbsp;User Name
						</td>
						<td>
							&nbsp;
							<input type="text" name="username">
						</td>
					</tr>
					<tr>
						<td>
							&nbsp;Password
						</td>
						<td>
							&nbsp;
							<input type="password" name="password">
						</td>
					</tr>
					<tr>
						<td>
							&nbsp;Retype Password
						</td>
						<td>
							&nbsp;
							<input type="password" name="repassword">
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<input type="submit" value="Submit" name="Submit">
						</td>

					</tr>
				</tbody>
			</table>

		</form>
		<!-- Menu goes here -->
		<div id="Menu">
			<a href="viewall.jsp" title="List all data">Home</a>
			<br />
			<a href="clickone.jsp" title="Show data on map">Map View</a>
			<br />
			<a href="#" title="Show/add users">Show/Add User</a>
			<br />
			<a href="contact.html" title="Contact us">Contact</a>
			<br />
			<a href="logout.do" title="Log Out">Log out</a>
		</div>
	</body>
</html>